package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.NxClip;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.tab.NxTab;
	import newx.com.control.text.NxLabel;

	/**
	 * 根骨界面
	 * @author zhouqiang
	 * 
	 */	
	public class IntensifyUI extends BaseUI
	{
		public static var _self:IntensifyUI;
		
		/**丹药服用图表*/
		public var infoGroup_0:NxViewGroup;
		public var infoGroup_1:NxViewGroup;
		public var infoGroup_2:NxViewGroup;
		public var infoGroup_3:NxViewGroup;
		public var infoGroup_4:NxViewGroup;
		public var infoGroup_5:NxViewGroup;
		
		/**标签*/
		public var listTab:NxTab;
		
		/**背景框*/
		public var bg:MovieClip;
		
		public var mz:MovieClip;
		
		public var imgBG:NxClip;
		
		public var planLab:NxLabel;
		
		public var resultLab:NxLabel;
		/**图片数组*/
		public static var groupArr:Array;
		
		//private var addBtn:SimpleButton;
		private var _isShow:Boolean	=	true;
		
		public function IntensifyUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		
		public static function getInstance():IntensifyUI
		{
			if(_self == null)
			{
				_self =	new IntensifyUI();
			}
			return _self;
		}
			
		override public function Init():void
		{
			groupArr	=	[infoGroup_0,infoGroup_1,infoGroup_2,infoGroup_3,infoGroup_4,infoGroup_5];
			IntensifyLogic.getInstance().Init();	
		}
		
		
		override protected function BeforeShow():void
		{
			IntensifyLogic.getInstance().BeforeShow();
			//var ma:AlertNextUI	=	new AlertNextUI("123123","456456",isOK,_isShow);
			//ma.addEventListener(NxWindowEvent.WINDOW_CLOSE,onColseHandle);
			if(_isShow == true)
			{
				//AlertNextUI.getInstance("123123","456456",isOK,_isShow,[]);
			}
			
			//this.addChild(_NewAlert);
		}
		
		public function isOK(bool:Boolean,arr:Array):void
		{
			_isShow	=	bool;
			if(bool == false)
			{
//				trace("不开界面直接发送消息");
			}
		
		}
		
//		private function onColseHandle(e:NxWindowEvent):void
//		{
//			(e.target as NxWindow).hide();
//		}
		
		override protected function AfterHide():void
		{
			IntensifyLogic.getInstance().AfterHide();	
		}
	}
}